package com.tesisutn.restsoft.resultado;

import java.util.ArrayList;
import java.util.List;

public class Content {
    private List<Row> rows;

    public Content(){
        rows = new ArrayList<Row>();
    }

    public void add(Row row){
        rows.add(row);
    }

    public void addIn(int index, Row row){
        rows.add(index, row);
    }

    public void remove(Row row){
        rows.remove(row);
    }

    public void removeAt(int index){
        rows.remove(index);
    }

    public int size(){
        return rows.size();
    }

    public Iterable<Row> getRows(){
        return rows;
    }
}
